import graph;
import math;

real xmin = -7, xmax = 7, ymin = -7, ymax = 7;

unitsize(20);

pen p = linewidth(0.2mm);
defaultpen(fontsize(10));

transform trans=shift(6,6);
draw(trans*((xmin,0)--(xmax,0)),p, arrow=Arrow());
draw(trans*((0,ymin)--(0,ymax)),p, arrow=Arrow());

label("$x$", trans*(xmax,0),SW+S,fontsize(12));
label("$y$", trans*(0,ymax), SE+E,fontsize(12));
label("$O$", trans*(0,0), SW);

pair A=trans*(1,-4);
pair B=trans*(5,-4);
pair C=trans*(4,-1);

draw(A--B--C--cycle);

label("$A$",A,S);
label("$B$",B,S);
label("$C$",C,N);

add(grid(12, 12,gray+dashed+linewidth(0.1mm)));